<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.monitorbs.system.disk.DiskMonitorPage"/>
<script>

	function diskTableGrid_onRowClickAfter(grid,page){
		
		var diskMainFrame = page.frame;
		var topPage = page.frame.page;
		var diskOtherFrame = topPage.find("diskOtherFrame");
		
		var detailPage = diskOtherFrame.framePage;
		var form = detailPage.find("diskDetailMonitorForm");
		
		form.value("DEV_NAME",grid.getFieldValue("DEV_NAME"));
		form.value("DIR_NAME",grid.getFieldValue("DIR_NAME"));
		form.value("DEV_TYPE",grid.getFieldValue("DEV_TYPE"));
		form.value("DEV_SYS_TYPE",grid.getFieldValue("DEV_SYS_TYPE"));
		form.value("DEV_TOTAL_SZ",grid.getFieldValue("DEV_TOTAL_SZ"));
		form.value("DEV_FREE_SZ",grid.getFieldValue("DEV_FREE_SZ"));
		form.value("DEV_AVAIL_SZ",grid.getFieldValue("DEV_AVAIL_SZ"));
		form.value("DEV_PERC",grid.getFieldValue("DEV_PERC"));
		
		var charts = detailPage.find("diskPie");
		charts.dataSet.setBody("DEV_IDX",grid.getFieldValue("DEV_IDX"));	
		charts.refresh();
		
	}

</script>